package cn.qxq1.controller;

import org.springframework.http.HttpHeaders;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.NoHandlerFoundException;

import javax.servlet.http.HttpServletRequest;

/**
 * @author zhangying
 * @date 2020-04-27
 * @description
 */
//@Controller
public class DefaultController {

    @RequestMapping
    public void nohandler(HttpServletRequest request) throws NoHandlerFoundException {
        throw new NoHandlerFoundException(request.getMethod(), request.getRequestURL().toString(),new HttpHeaders());
    }
}
